package com.example.pojo.movies;

import io.swagger.annotations.ApiModel;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.List;

@Data
@ApiModel
@Document(indexName = "movies", type = "movie")
public class Movie {
    int id;
    private String img;
    private String play_href;
    @Field(analyzer = "ik_smart", fielddata = true, type = FieldType.Text)
    private String name;
    private String href;
    private int year;
    private int rank;
    private String language;
    private String genre;
    private String big_genre;
    @Field(analyzer = "ik_smart", fielddata = true, type = FieldType.Text)
    String storyline;
    List<Resource> resourceList;

}
